package com.common.common.option;

/**
 * 查询后缀
 *
 * @author liujun
 * @date 2024/10/10
 */
public enum QuerySuffix {
    LIKE("LIKE", "模糊查询"),
    LEFT_LIKE("LEFT_LIKE", "左模糊查询"),
    RIGHT_LIKE("RIGHT_LIKE", "右模糊查询"),
    EQUAL("EQUAL", "等于"),
    LESS("LESS", "小于"),
    GREAT("GREAT", "大于"),
    LESS_EQUAL("LESS_EQUAL", "小于等于"),
    GREAT_EQUAL("GREAT_EQUAL", "大于等于"),
    NOT_EQUAL("NOT_EQUAL", "不等于"),
    IS_NULL("IS_NULL", "为空"),
    NOTNULL("NOTNULL", "不为空"),
    IN("IN", "包含"),
    NOT_IN("NOT_IN", "不包含"),
    BETWEEN("BETWEEN", "在...之间");

    public String val;
    private String desc;

    QuerySuffix(String val, String desc) {
        this.val = val;
        this.desc = desc;
    }

    public String val() {
        return this.val;
    }

    public String desc() {
        return this.desc;
    }
}
